import { useRequest } from "ahooks";
import { useState } from "react";
import { getCategoryService } from "../api/category";

export default function useCategoryData() {
    const {loading, data, error} = useRequest(getCategoryService);
    return {loading, data, error};
}